package com.msh.frame.interfaces;

/**
 * 验证码生成
 */
public interface IQuestionAnswerGen {

  /**
   * 获取问题答案
   * @return QuestionAnswer
   */
  QuestionAnswer gen();

  /**
   * 问题答案
   */
  public static class QuestionAnswer{
    private String question;
    private String answer;

    public QuestionAnswer() {
    }

    public QuestionAnswer(String question, String answer) {
      this.question = question;
      this.answer = answer;
    }

    public String getQuestion() {
      return question;
    }

    public QuestionAnswer setQuestion(String question) {
      this.question = question;
      return this;
    }

    public String getAnswer() {
      return answer;
    }

    public QuestionAnswer setAnswer(String answer) {
      this.answer = answer;
      return this;
    }
  }
}
